]> dgit.raspbian.org Git - grub2.git/commit
fix-for-gcc-2.16-3
authorGRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net>
Wed, 23 Sep 2026 20:39:45 +0000 (21:39 +0100)
committerSteve McIntyre <93sam@debian.org>
Wed, 23 Sep 2026 20:39:45 +0000 (21:39 +0100)
commita3399cd2828ea8d3526401b26463dd16b190fe46
tree0dab2523f01c28c5decc70b1fbf77a961db76a89
parentb16ad2adc986244c9668b1462999afef28bcd685
fix-for-gcc-2.16-3

commit 9922ed133c2c754ec9f37198da2b3e3e8a4fd5ff
Author: Nicholas Vinson <nvinson234@gmail.com>
Date:   Tue Mar 3 21:41:13 2026 -0500

    include/grub/i386/pc/int.h: Move GRUB_MACHINE_PCBIOS ifdef

    Modern compilers are becoming more strict and starting to warn when
    certain attributes are ignored. The regparam attribute is such an
    attribute.

    Moreover, the function

      void EXPORT_FUNC (grub_bios_interrupt) (grub_uint8_t intno, struct grub_bios_int_registers *regs) __attribute__ ((regparm(3)));

    is only defined with the i386-pc target.

    Update include/grub/i386/pc/int.h so grub_bios_interrupt() is only
    declared when GRUB_MACHINE_PCBIOS is defined. This addresses the issue
    of declaring a function that is not defined for non-i386-pc targets and
    prevents the "attribute ignored" diagnostic message.

Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fix-for-gcc-2.16-3.patch
include/grub/i386/pc/int.h